import service from '@/utils/request';

/**
 * 新增保险工作信息
 * @param data 
 * @returns 
 */
export function AddInsurInfo(data: any) {
    return service({
        url: '/itf/employee/web/insurance',
        method: 'POST',
        data
    })

}


/**
 * 删除保险工作信息职位分配
 * @param data 
 * @returns 
 */
export function DeletedInsurInfo(uuid: any) {
    return service({
        url: `/itf/employee/web/insurance/uuid/${uuid}`,
        method: 'DELETE',
    })

}



/**
 * 根据uuid修改保险信息
 * @param params 
 * @returns 
 */
export function PutInsurInfoUpdate(data: any) {
    return service({
        url: '/itf/employee/web/insurance/uuid/' + data.uuid,
        method: 'put',
        data
    })

}


/**
 * 根据uuid查询保险详情信息
 * @param params 
 * @returns 
 */
export function GetInsurInfoByUuid(uuid: any) {
    return service({
        url: `/itf/employee/web/insurance/uuid/${uuid}`,
        method: 'get',
    })
}


/**
 * 根据uuid查询保险详情信息
 * @param params 
 * @returns 
 */
export function GetInsurInfoAll(params: any) {
    return service({
        url: `/itf/employee/web/insurance`,
        method: 'get',
        params
    })
}